<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property int $room_id 房间ID
 * @property int $session_id 直播场次ID
 * @property int $anchor_id 主播ID
 * @property int $packet_id 红包ID
 * @property int $packet_coins 红包金币
 * @property int $packet_number 红包数量
 * @property int $packet_type 红包类型 1-拼手气 2-固定
 * @property int $userid 用户ID
 * @property string $nickname 昵称
 * @property int $add_time 发送时间
 */
class LiveSessionPacket extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'live_session_packet';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'room_id', 'session_id', 'anchor_id', 'packet_id', 'packet_coins', 'packet_number', 'packet_type', 'userid', 'nickname', 'add_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'room_id' => 'integer', 'session_id' => 'integer', 'anchor_id' => 'integer', 'packet_id' => 'integer', 'packet_coins' => 'integer', 'packet_number' => 'integer', 'packet_type' => 'integer', 'userid' => 'integer', 'add_time' => 'integer'];
}
